package com.geyue.common.base.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by Lyon on 2017/3/24.
 */
@Data
public class Model implements Serializable {

    @Id
    private Integer id;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column(name = "add_time")
    private Date addTime;

}
